home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 May / cd joy 71No13.iso / pc / demos / eurosoc / source / jimfunc.h < prev    next >
Text File  |  1995-09-20  |  2KB  |  63 lines

  1. // Prototypes for ADDEXT.C
  2. void add_extension(char *filename,char *extension);
  3. void strip_extension(char *name);
  4. void extract_filename(char *dest, char *fullname);
  5. void extract_path(char *dest, char *fullname);
  6. int check_exe_name(char *real, char *exp);
  7.  
  8. // Prototypes for CAL.C
  9. char day_of_week(int d, int m, int y);
  10. int days_until(int d, int m, struct tm tm);
  11. char *curdate(char flag);
  12. char *curtime(char flag);
  13.  
  14. // Prototypes for DOSMEM.C
  15. unsigned char *DOSalloc(unsigned int size, signed short *selector);
  16. void DOSfree(signed short sel);
  17. void real_mode(int number, struct rminfo *rmi);
  18.  
  19. // Prototypes for FINDDEF.c
  20. unsigned char find_def(char *def, char *value, FILE *fp);
  21.  
  22. // Prototypes for FONT.C
  23.  
  24. // Prototypes for GETENV.C
  25. unsigned char get_env_or_default(char *name, char *storage, char *v_default);
  26.  
  27. // Prototypes for TIME.C
  28. void reltime(int num, char *dest);
  29.  
  30. // Prototypes for MOUSE.C
  31. void report_mouse(mouse_struct *info);
  32. short init_mouse(void);
  33. void limit_mouse(short xs, short ys, short xe, short ye);
  34. void set_mouse_position(mouse_struct *info);
  35.  
  36. // Prototypes for TEXT.C
  37. void up_line(void);
  38. void goxy(int x, int y);
  39. void getxy(int *x, int *y);
  40. void cursor_position_routine(u_char flag);
  41. void bottom_line(void);
  42. void get_row_cols(u_char *cols, u_char *rows);
  43. void scroll_window(u_char flag, u_char x1, u_char y1, u_char x2, u_char y2, u_char lines);
  44. void scroll_up(u_char no_lines);
  45. void scroll_down(u_char no_lines);
  46. void write_string(u_char *string, u_char attrs);
  47. void cls(void);
  48.  
  49. // Prototypes for VESA.C
  50. int VESAget_mode_list(void);
  51. void VESAclosedown(void);
  52. unsigned char VESAget_mode_info(unsigned short scrmode);
  53. unsigned char VESAinit(void);
  54. int VESAfind_mode(int x, int y, int bits);
  55. void VESAget_granularity(int mode);
  56.  
  57. // Prototypes for VIDEO.C
  58. unsigned short GetVideoMode(void);
  59.  
  60. // Prototypes for IEEE.C
  61. # define FloatToUnsigned(f)      ((unsigned long)(((long)(f - 2147483648.0)) + 2147483647L) + 1)
  62. void ConvertToIeeeExtended(double num, char *bytes);
  63.